<?php
$this->breadcrumbs=array(
	AdminModule::t('Profile Fields')=>array('admin'),
	AdminModule::t('Manage'),
);
?>

<?php /*echo $this->renderPartial('_menu', array(
		'lists'=> array(
			CHtml::link(AdminModule::t('Create Profile Fields'),array('create')),
		),
	));*/
?>
<?php /*
<ul class="operations">
	<!--  <li><?php //echo CHtml::link(AdminModule::t('List User'),array('cpanel/admin')); ?></li>-->
	<li><?php echo CHtml::link(AdminModule::t('Manage User'),array('cpanel/manage')); ?></li>
	<li><?php //echo CHtml::link(AdminModule::t('Manage Profile Field'),array('profileField/admin')); ?></li>
	<li><?php echo CHtml::link(AdminModule::t('Create Profile Fields'),array('profileField/create')); ?></li>
</ul><!-- actions -->
*/ ?>
<div class="admin_table">
<h1><?php echo AdminModule::t('Manage Profile Fields'); ?></h1>
<?php $this->widget('zii.widgets.grid.CGridView', array(
	'dataProvider'=>$dataProvider,
	'columns'=>array(
		'id',
		'varname',
		array(
			'name'=>'title',
			'value'=>'AdminModule::t($data->title)',
		),
		'field_type',
		'field_size',
		//'field_size_min',
		array(
			'name'=>'required',
			'value'=>'ProfileField::itemAlias("required",$data->required)',
		),
		//'match',
		//'range',
		//'error_message',
		//'other_validator',
		//'default',
		'position',
		array(
			'name'=>'visible',
			'value'=>'ProfileField::itemAlias("visible",$data->visible)',
		),
		//*/
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
</div><!-- .admin_table -->